//
//  NSObject+Ex.swift
//  App
//
//  Created by LXF on 2018/9/27.
//  Copyright © 2018年 LXF. All rights reserved.
//

import Foundation


extension NSObject{
    public func isKind(classList: [AnyClass]) -> AnyClass?{
        for clazz in classList {
            if self.isKind(of: clazz){
                return clazz
            }
        }
        return nil
    }
    public func isKind(classList: [AnyClass]) -> Bool{
        return isKind(classList: classList) != nil
    }
}
